<?php
  $classes = array(
    'type-image',
    'full column'
  );

      $image_url =  get_post_meta(get_the_ID(), 'redox_image', true);

?>
<div id="post-<?php the_ID(); ?>" <?php post_class($classes); ?>>
		<div class="media">	<?php
								if($image_url!='') { 
									echo '<a href="'.$image_url.'">';
								} 
								else { ?>
									<a href="<?php the_permalink(); ?>">
								<?php
								} 
							 the_post_thumbnail('large'); ?>
				</a>
    	</div>
	<?php 
	$the_permalink = get_permalink();
	the_title('
		<h3 class="title">
			<a href="' . $the_permalink . '"title="Permalink">', '</a>
		</h3>' ); 
	?>
	<div class="entry body">
		<?php the_content('<span class="more_divider">More.</span>'); ?>
	</div>
	<?php
		get_template_part('PermalinkPosts/permalink-meta');
	?>
</div>
<?php comments_template(); ?> 
